package com.rubiksillusions;

public class Notation {
	public static final int SINGMASTER = 0;
	public static final int ITALIAN = 1;
	
	public static Move getMoveFromRappresentation(String rappresentation, int notation) {
		
	}
	
	public static String getRappresentationFromMove(Move move, int notation) {
		String rappresentation = "";
		if (notation == Notation.SINGMASTER) {
			if (move.getMove() == Move.LEFT) {
				rappresentation += "L";
			} else if (move.getMove() == Move.RIGHT) {
				rappresentation += "R";
			} else if (move.getMove() == Move.UP) {
				rappresentation += "U";
			} else if (move.getMove() == Move.DOWN) {
				rappresentation += "D";
			} else if (move.getMove() == Move.FRONT) {
				rappresentation += "F";
			} else if (move.getMove() == Move.BACK) {
				rappresentation += "B";
			}
		} else if (notation == Notation.ITALIAN) {
			if (move.getMove() == Move.LEFT) {
				rappresentation += "S";
			} else if (move.getMove() == Move.RIGHT) {
				rappresentation += "D";
			} else if (move.getMove() == Move.UP) {
				rappresentation += "H";
			} else if (move.getMove() == Move.DOWN) {
				rappresentation += "B";
			} else if (move.getMove() == Move.FRONT) {
				rappresentation += "A";
			} else if (move.getMove() == Move.BACK) {
				rappresentation += "P";
			}
		}
		if (move.getRotation() == Move.CLOCKWISE) {
			rappresentation += "";
		} else if (move.getRotation() == Move.ANTICLOCKWISE) {
			rappresentation += "'";
		} else if (move.getRotation() == Move.DOUBLE) {
			rappresentation += "2";
		}
		return rappresentation;
	}
}
